#include "CHandleMap.h"

CObject* CHandleMap::LookupPermanet(HANDLE h)
{
    return (CObject*)m_permanetMap[h];
}
void CHandleMap::SetPermanet(HANDLE h, CObject* permOb)
{
    m_permanetMap[h] = permOb;
}

void CHandleMap::RemoveHandle(HANDLE h)
{
    m_permanetMap.RemoveKey(h);
}

CObject* CHandleMap::FromHandle(HANDLE h)
{
    return LookupPermanet(h);
}